package org.lanqiao.dxzf.mapper.admin;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.lanqiao.dxzf.entity.Role;
import org.lanqiao.dxzf.mapper.BaseMapper;

public interface RoleMapper extends BaseMapper<Role>{
	/**
	 * 查询所有的角色信息
	 * @param aid
	 * @return
	 */
	List<Role> selectAllRoleByAid(Integer aid);
	/**
	 * 给角色授权 中间表名RP_TABLE
	 */
	int addPriv(@Param("list") List<Integer> pids,@Param("rid") Integer rid);
	
}
